package com.haidao.admin.component.entity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Data;

@Data
@Entity
@Table(name="user")
public class User {

    // ID
    @Id
    private Long id;

    // 用户名
    @Column(name="user_name")
    private String userName;

    // 用户编码
    @Column(name="user_code")
    private String userCode;

    // 手机号
    @Column(name="phone")
    private String phone;

    // 邮箱
    @Column(name="mail")
    private String mail;

    // 密码
    @Column(name="password")
    private String password;

    // 密码盐
    @Column(name="salt")
    private String salt;

    // 性别
    @Column(name="sex")
    private Integer sex;

}